<?php if(!empty($banners)): ?>
    <?php foreach ($banners as $key => $banner): ?>
        
        <tr>
        	<td align="left" valign="top">
	            <?php echo link_to(
	    						image_tag(
	    							'/uploads/' . $banner->getUname()
	    							, array(
	    							'title' => $banner->getName()
	                                , 'alt' => $banner->getName()
	                                , 'width' => '120'
	                                , 'height' => '60'
	                                , 'border' => '0'
	                            	)
	    						)
	    						, 'banner/go?to=' . $banner->getUid()
	    						//, $banner->getUrl()
	    						, 'popup=true'
	    					)?>
    		</td>
    	</tr>
        
	    <tr>
	       <td align="left" valign="top">&nbsp;</td>
	    </tr>
    
    
    <?php endforeach; ?>
<?php endif; ?>
<?php if( $sf_user->isAuthenticated() == true && $sf_user->hasCredential('Admin') ): ?>
    <div id="" class="edit">
            <?php echo link_to(image_tag('note_edit.png', array('style' => 'border:0px;', 'title' => __('Attach banner'))), 'banner/create?banner_type=' . $banner_type . '&obj_id=' . $sf_params->get('id')); ?>
    </div>
<?php endif;?>